package com.dao;

import com.pojo.Salary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface SalaryMapper {
    List<Salary> getAllSalary();
    List<Salary> getAllSalaryByUid(int u_id);

    Double getSumsalary(int u_id);
    Double getSumtotal(int u_id);
    int addSalary(Salary salary);
    int delSalary(int id);
    int updateSalary(Salary salary);
    Salary getSalaryById(int id);
    int updateHoliday(@Param("u_id") int u_id, @Param("num") double num);
    int updateReward(@Param("u_id") int u_id, @Param("num") double num);
}
